<template>
  <div>
    <div>
      <div class="box">
        <div @click="$router.push('/')">发布页</div>
        <div @click="$router.push('/about')">展示页</div>
      </div>
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.box {
  width: 100%;
  height: 60px;
  background-color: #545c64;
  display: flex;
  text-align: center;
  line-height: 60px;
  div {
    color: white;
    width: 50%;
    height: 100%;
  }
  div:hover {
    color: yellow;
  }
}
</style>
